a=input()
print(a[-1::-1])#[-1::-1]开头到结尾依次倒序